import { PaginationQuery, TableData } from '@/types/table';
import { getUsers } from '@/api/user';

export const getUserList = async (params: PaginationQuery): Promise<TableData> => {
    const { content, totalElements } = await getUsers(params);
    return { list: content, total: totalElements };
};
